<form id = "payment_form" name = "payment_form" action = "{$action}" method = "post">
<table id = "table_payments" cellspacing="0" cellpadding="0">
  <tbody>
  {foreach from=$payment_methods item=payment name=paymentfor}
  <tr>
    <td style = "padding-top:5px; padding-bottom:5px">
      <input type = "radio" name = "payment_method" id = "payment_method[{$payment->payment_id}]" onclick = "showPaymentForm('{$payment->payment_class}')" value = "{$payment->payment_class}" />
      <label for = "payment_method[{$payment->payment_id}]"><b>{$payment->name}</b></label>
    </td>
  </tr>
  <tr id = "tr_payment[{$payment->payment_class}]" style = "display:none">
    <td class = "unocart_payment_method">
        {$payment->payment_description}
		{$payment->form}
    </td>
  </tr>
  {/foreach}
  </tbody>
</table>
<input type = "hidden" name = "option" value = "com_unocart" />
<input type = "hidden" name = "task" value = "checkout" />
<input type = "hidden" name = "step" value = "4" />
<input type = "hidden" name = "Itemid" value = "{$smarty.request.Itemid}" />
<br />
<input type = "button" id = "payment_submit" class = "button" name = "payment_submit" value = "{$smarty.const._UNOCART_NEXT}" />
</form>

{literal}
    <script type="text/javascript">
        jQuery(function(){
            jQuery(jQuery('input[@id^=payment_method]')[0]).trigger("click");
        })
    </script>
{/literal}